/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import pasremote.PASRemote;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import pass_client.LoginFrame;
import pass_client.student.StudentFrame;
import pass_client.student.AssignmentListPanel;
import pass_client.innerstructure.Account;

/**
 *
 * @author ryuju
 */
public class PASS_Client {

    private static LoginFrame loginFrame;

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        try {
            Context context = new InitialContext();
            Object obj = context.lookup("java:global/PASS/PASS-ejb/PAS!pasremote.PASRemote");
            
            PASRemote bean = (pasremote.PASRemote) obj;

            System.out.println("connection success");

            loginFrame = new LoginFrame(bean);
            


        } catch (NamingException ex) {
            Logger.getLogger(PASRemote.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
